import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '../components/tabbar/Home'
import Member from '../components/tabbar/Member'
import Shopcar from '../components/tabbar/Shopcar'
import Search from '../components/tabbar/Search'
import NewsList from '../components/news/NewsList'
import NewsInfo from '../components/news/NewsInfo'
import PhotoList from '../components/photo/PhotoList'



 
Vue.use(VueRouter)

// const routes = [
//   {
//   },
//   {
//     // component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
//   }
// ]

const routes = [
  { path: '/', redirect: '/home' },
  { path: '/home', component: Home },
  { path: '/member', component: Member },
  { path: '/shopcar', component: Shopcar },
  { path: '/search', component: Search },
  { path: '/home/newsList', component: NewsList },
  { path: '/home/newsInfo/:id', component: NewsInfo },
  { path: '/home/photoList', component: PhotoList },


]

const router = new VueRouter({
  routes
})

export default router
